import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
//引入要路由的组件
import SysIndex from '@/views/SysIndex.vue'
import HelloWorld from '@/views/HelloWorld.vue'
import BuildingManager from '@/views/BuildingManager.vue'
import SemesterManager from '@/views/SemesterManager.vue'
import AcademicianManager from '@/views/AcademicianManager.vue'
import FloorManager from '@/views/FloorManager.vue'
import LaboratoryManager from '@/views/LaboratoryManager.vue'
import Login from '@/views/Login.vue'
import MerchantListManager from '@/views/MerchantListManager.vue'
import CheckManager from '@/views/CheckManager.vue'
import JurisdictionManager from '@/views/JurisdictionManager.vue'
import MyLaboratoryManager from '@/views/MyLaboratoryManager.vue'
import UserInfo from '@/views/UserInfo.vue'




//创建路由器
const router = new createRouter({
    //指定History路由模式，默认是Hash模式
    history:createWebHashHistory(),
    //配置路由
    routes: [
        {
            path: '/',
            component: SysIndex,
            redirect:'/Login',
            children: [
                {
                    path: '/HelloWorld',
                    component: HelloWorld
                }, 
              
                {
                    path: '/BuildingManager',
                    component: BuildingManager
                },
                {
                    path: '/SemesterManager',
                    component: SemesterManager
                },
                {
                    path: '/AcademicianManager',
                    component: AcademicianManager
                },
                {
                    path: '/FloorManager',
                    component: FloorManager
                },
                {
                    path: '/LaboratoryManager',
                    component: LaboratoryManager
                },
                {
                    path: '/MerchantListManager',
                    component: MerchantListManager
                },
                {
                    path: '/JurisdictionManager',
                    component: JurisdictionManager
                },
                {
                    path: '/CheckManager',
                    component: CheckManager
                },
                {
                    path: '/MyLaboratoryManager',
                    component: MyLaboratoryManager
                },
                {
                    path: '/Infomation',
                    component: UserInfo
                }
                
            ]
        },
        {
            path:'/Login',
            component:Login
        },
    ]
})
//暴露路由器
export default router

